/*
 * BPlussIStructureFactory.h

 *
 *      Author: carlos
 */

#ifndef BPLUSSISTRUCTUREFACTORY_H_
#define BPLUSSISTRUCTUREFACTORY_H_

#include "../../utils/types.h"
#include "../../exceptions/ProgramException.h"
#include "IStrutureBTreeImpl.h"
#include "IStructureBTreeSecondaryIndexImpl.h"
class BPlussIStructureFactory {
public:
	static IStrutureBTreeImpl* createIStrcutre(ESTRUCTURAS estructura) {

		return new IStrutureBTreeImpl(estructura);
	}

	static IStructureBTreeSecondaryIndexImpl* createIndexIStructure(
			ESTRUCTURAS estructuraSecundaria) {

		return new IStructureBTreeSecondaryIndexImpl(estructuraSecundaria);

	}

	BPlussIStructureFactory();
	virtual ~BPlussIStructureFactory();
};

#endif /* BPLUSSISTRUCTUREFACTORY_H_ */
